package com.design.singleton;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/25
 * @Description
 */
public class Singleton1 {

    public static Singleton1 uniqueInstance;


    private Singleton1(){}


    public synchronized static Singleton1 getInstance(){
        if(uniqueInstance==null){
            uniqueInstance = new Singleton1();
        }
        return  uniqueInstance;
    }
}
